package com.hsjk.szwj.module.mp.dal.mysql;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.module.mp.dal.dataobject.MiniConfigDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/15 18:16
 **/
@Mapper
public interface IMiniMapper extends BaseMapperX<MiniConfigDO> {
    default MiniConfigDO getMiniByTenantId(Long tenantId) {
        return selectOne(new LambdaQueryWrapper<MiniConfigDO>()
                .eq(MiniConfigDO::getTenantId, tenantId));
    }
}
